//
//  Standby_01_Right.swift
//  TimMusic
//
//  Created by nkl on 2024/10/25.
//

import Foundation
import SwiftUI

struct Small_StandbyRight_03: View {
    var model: ControlMusicModel

    var body: some View {
        ZStack {
            Color.black.ignoresSafeArea()

            HStack(spacing: 10) {
                TimeTextLabel(style: .hour, date: Date(), font: .HarmonyOSSansSCBold(size: 34), color: .white)
                    .modifier(ClockSimpleBgModifier(size: CGSize(width: 66, height: 66), lineHeight: 2, radius: 8, offset: 8))

                ZStack(alignment: .bottomTrailing) {
                    TimeTextLabel(style: .minute, date: Date(), font: .HarmonyOSSansSCBold(size: 34), color: .white)
                        .modifier(ClockSimpleBgModifier(size: CGSize(width: 66, height: 66), lineHeight: 2, radius: 8, offset: 8))

                    TimeTextLabel(style: .second, date: Date(), font: UIFont.HarmonyOSSansSCBold(size: 8), color: .white).padding(.trailing, 4)
                }
            }

            VStack {
                Spacer()
                HStack {
                    Text(DateFormatter().simpleMonthAndDay())
                        .font(.init(UIFont.HarmonyOSSansSCBold(size: 12)))
                        .foregroundColor(.white)
                    Spacer()
                    Image("ic_standby_air_white").resizable().frame(width: 20, height: 20)
                }
            }
            .padding([.leading, .trailing, .bottom])
        }
    }
}

#Preview {
    Small_StandbyRight_01()
}
